package com.rotsel.mh3udb.app.Activities;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;

import com.rotsel.mh3udb.app.Adapters.MainMenuAdapter;
import com.rotsel.mh3udb.app.R;
/*
public class MainMenuActivity extends BaseActivity {

	private ListView mainMenuList;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu);

		mainMenuList = (ListView)findViewById(R.id.list);
		MainMenuAdapter arrayAdapter = new MainMenuAdapter(this, getDb().getAllMenus());
		mainMenuList.setAdapter(arrayAdapter);
		mainMenuList.setOnItemClickListener(new AdapterView.OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
				switch((int)id){
					case 1:
                        Intent intent = new Intent(MainMenuActivity.this, WeaponTypeListActivity.class);
                        startActivity(intent);
						break;
					default:
                        Toast toast = Toast.makeText(MainMenuActivity.this, "Not available yet", Toast.LENGTH_SHORT);
                        toast.show();
                        break;
				}
			}

		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}*/
